package com.guonl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.guonl.service.IUserService;

@RestController
@RequestMapping("/springboot")
public class UserController {
	
	@Autowired
	private IUserService userService;

	@ResponseBody
	@RequestMapping(value = "/{name}", method = RequestMethod.GET)
	public String sayWorld(@PathVariable("name") String name) {
		int id = 1;
//		userService.queryById(id);
		return "Hello " + name;
	}

}



